import request from '@/utils/request'
/**
 *所有菜单
 */
export const getsystemAPI = () => {
  return request({
    url: '/sys_menu/allData'
  })
}
/**
 *删除功能
 */
export const deletesystemAPI = (id) => {
  return request({
    url: '/sys_menu/del',
    params: {
      id: id
    }
  })
}

/**
 * 添加功能
 */
export const addfnAPI = (data) => {
  return request({
    method: 'post',
    url: '/sys_menu/add',
    data
  })
}

/**
 *菜单项请
 */
export const updataAddAPi = (id) => {
  return request({
    url: '/sys_menu/rowInfo',
    params: {
      id: id
    }
  })
}
/**
 *修改功能
 */
export const ADDUpdataAPI = (data) => {
  return request({
    method: 'post',
    url: '/sys_menu/update',
    data
  })
}
